<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3D旋转木马</title>
    <style>
        body{
            perspective: 5000px;
        }
        section{
            margin: 100px auto;
            position: relative;
            width: 320px;
            height: 320px;
            transform-style: preserve-3d;
            animation: circle 3s linear infinite;
            background: url("../../../Img/pig.jpg");
        }
        .box{
            position: absolute;
            top: 0;
            left: 0;
            width: 300px;
            height: 200px;
            background: url("../../../Img/dog.jpg");
        }

        @keyframes circle {

            0%{
                transform: rotateY(0);
            }

            100%{
                transform: rotateY(360deg);
            }
        }

        .box:nth-child(1){
            transform: rotateY(0) translateZ(300px);
        }

        .box:nth-child(2){
            transform: rotateY(60deg) translateZ(300px);
        }

        .box:nth-child(3){
            transform: rotateY(120deg) translateZ(300px);
        }

        .box:nth-child(4){
            transform: rotateY(180deg) translateZ(300px);
        }

        .box:nth-child(5){
            transform: rotateY(240deg) translateZ(300px);
        }

        .box:nth-child(6){
            transform: rotateY(300deg) translateZ(300px) ;
        }

    </style>
</head>
<body>
<section>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
</section>
</body>
</html>